package com.itheima.bean;

import java.io.Serializable;

// 用户类
public class User implements Serializable {
    private String username;
    private String password;

    // 添加 serialVersionUID 标记类序列化编号，可以避免再次修改类时出现的java.io.InvalidClassException
    private static final long serialVersionUID = 4L;

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }
    public User() {
    }

    public String getUsername() {
        return username;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }

}

